/*
 * @(#)UserContent.java 0.0.1-SNAPSHOT
 *
 * Copyright Group B
 */

package grupb.upf.ms.impl;

import java.io.Serializable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
 * <p>This class implements a UserContent interface. It is used to be create
 * the message which will be sent as a query to receive a file.</p>
 *
 *
 * @version    0.0.1-SNAPSHOT
 * @author     Group B
 */
public final class UserContent implements grupb.upf.ms.UserContent,
        Serializable {

    /**
     * The logger. A new logger <code>grupb.upf.ms.UserContent</code> is created
     * to add the logs of this UserContent.
     */
    private static final Log LOG = LogFactory.getLog(UserContent.class);
    /**
     * The serialVersionUID is created to be able to serialize this class, it's
     * necessary because it will be sent.
     */
    private static final long serialVersionUID = 1L;
    /**
     * The URL of the content.
     */
    private String url;

    /**
     * Constructor to set the URL of the content.
     * @param newURL the URL of the content
     */
    public UserContent(final String newURL) {
        this.url = newURL;
    }

    /**
     * This method allows us to setUp the URL of the content.
     * @param newURL the URL of the content
     */
    @Override
    public void setURL(final String newURL) {
        this.url = newURL;
    }

    /**
     * Recovery the URL of the UserContent object.
     * @return the URL of the content
     */
    @Override
    public String getURL() {
        return this.url;
    }
}
